module.exports = {
  publicPath: './',
  // publicPath: '/slt/yjfb',
  outputDir: 'publishTokenOL',
  lintOnSave: false,
  css: {
    loaderOptions: {
      // 给 sass-loader 传递选项
      sass: {
        // @/ 是 src/ 的别名
        // 所以这里假设你有 `src/variables.scss` 这个文件
        data: `@import "@/constant/globalStyle.scss";`
      },
      postcss: {
        plugins: [
          require('postcss-px2rem')({
            remUnit: 37.5
          })
        ]
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'https://www.bitfeel.cn',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
      '/parallelApi': {
        target: 'http://154.85.41.169:8901',
        changeOrigin: true,
        pathRewrite: {
          '^/parallelApi': ''
        },
      },
      '/chain33Api': {
        target: 'https://mainnet.bityuan.com/api',
        changeOrigin: true,
        pathRewrite: {
          '^/chain33Api': ''
        },
      }
    }
  }
}